$(function() {
	$("#addBtn").bind("click",function(){
		window.showModalDialog('contract/client/contract-client!input',window);
	
	});
	
	//http://test.qinghua.com:71/business/
	$("div.pagination ul li a").bind("click",function(){
		if($(this).hasClass('noclick'))return;
		var page = $(this).attr("page");
		var link = "contract/client/contract-client!pager?page="+page+"&rows=10";
		doGet(link);		
	});
	       
});// end of document ready
function removeOne(eid) {
	if(!confirm('的确要删除此项?'))return;
	var url='contract/client/contract-client!remove';
    $.post(url,"bean.id="+eid,function(){
    	var link = "contract/client/contract-client!pager?page="+cpage+"&rows=10";
		doGet(link);	
    });	
	
}